using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Master
{
    /// <summary>
    /// 订单售后 
    /// </summary>
    [SugarTable("order_aftersale")]
    public class OrderAfterSale
    {

        /// <summary>
        /// 自增id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(ColumnName = "order_id")]
        public string OrderId { get; set; }

        /// <summary>
        /// 售后类型 1.普通咨询 2.订单争议
        /// </summary>
        [SugarColumn(ColumnName = "aftersale_type")]
        public int AftersaleType { get; set; }

        /// <summary>
        /// 售后说明
        /// </summary>
        [SugarColumn(ColumnName = "aftersale_remark")]
        public string AftersaleRemark { get; set; }

        /// <summary>
        /// 售后处理状态 0 处理中 1 处理完成
        /// </summary>
        [SugarColumn(ColumnName = "aftersale_status")]
        public int AftersaleStatus { get; set; } = 0;

        /// <summary>
        /// 售后处理说明
        /// </summary>
        [SugarColumn(ColumnName = "aftersale_result")]
        public string AftersaleResult { get; set; }

        /// <summary>
        /// 售后处理期限
        /// </summary>
        [SugarColumn(ColumnName = "aftersale_deadline")]
        public DateTime AftersaleDeadline { get; set; }

        /// <summary>
        /// 更新人id
        /// </summary>
        [SugarColumn(ColumnName = "updated_by")]
        public int UpdatedBy { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        [SugarColumn(ColumnName = "updated_by_name")]
        public string UpdatedByName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime UpdatedTime { get; set; }

        /// <summary>
        /// 创建人id
        /// </summary>
        [SugarColumn(ColumnName = "created_by")]
        public int CreatedBy { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        [SugarColumn(ColumnName = "created_by_name")]
        public string CreatedByName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "created_time")]
        public DateTime CreatedTime { get; set; }

    }
}
